{extend name="./content"}

{block name="content"}
<form onsubmit="return false;" action="__SELF__" data-auto="true" method="post" class='form-horizontal' style='padding-top:20px'>

    <div class="form-group">
        <label class="col-sm-2 control-label">支付宝</label>
        <div class='col-sm-8'>
            <select name="alipay_type" class="layui-input" required>
				<option value="0" {if sysconf('alipay_type')==0}selected{/if}>关闭通道</option>
                <option value="alipaypc" {if sysconf('alipay_type')=='alipaypc'}selected{/if}>电脑支付</option>
                <option value="alipaydmf" {if sysconf('alipay_type')=='alipaydmf'}selected{/if}>当面付</option>
				<option value="epay" {if sysconf('alipay_type')=='epay'}selected{/if}>易支付</option>
            </select>
            <p class="help-block">支付宝支付方式</p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">微信钱包</label>
        <div class='col-sm-8'>
            <select name="wechatpay_type" class="layui-input" required>
                <option value="0" {if sysconf('wechatpay_type')==0}selected{/if}>关闭通道</option>
                <option value="wechatpay" {if sysconf('wechatpay_type')=='wechatpay'}selected{/if}>微信扫码</option>
				<option value="epay" {if sysconf('wechatpay_type')=='epay'}selected{/if}>易支付</option>
            </select>
            <p class="help-block">微信钱包支付方式</p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">QQ钱包</label>
        <div class='col-sm-8'>
            <select name="qpay_type" class="layui-input" required>
                <option value="0" {if sysconf('qpay_type')==0}selected{/if}>关闭通道</option>
                <option value="qpay" {if sysconf('qpay_type')=='qpay'}selected{/if}>QQ扫码</option>
				<option value="epay" {if sysconf('qpay_type')=='epay'}selected{/if}>易支付</option>
            </select>
            <p class="help-block">QQ钱包支付方式</p>
        </div>
    </div>

	<div class="form-group layui-form-item">
		<label class="col-sm-2 control-label">充值金额</label>
		<div class='layui-input-inline' style="margin-left: 15px;">
			<input type="number" onkeyup="gt0(this)" name="pay_min_price" required="required" title="充值最低金额"
				placeholder="充值最低金额" value="{:sysconf('pay_min_price')}" class="layui-input" min="0">
			<p class="help-block">充值最低金额区间,0为不限制</p>
		</div>

		<div class='layui-input-inline'>
			<input type="number" onkeyup="gt0(this)" name="pay_max_price" required="required" title="充值最高金额"
				placeholder="充值最高金额" value="{:sysconf('pay_max_price')}" class="layui-input" min="0">
		</div>
	</div>

    <div class="hr-line-dashed"></div>

    <div class="subto">
        <div class="layui-form-item text-center">
            <button class="layui-btn" type="submit">保存配置</button>
        </div>
    </div>

</form>
<script>
    layui.use('form', function(){
        var form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功
        form.render();
    });
</script>
{/block}
